package com.bocloud.kong.model;

import static com.bocloud.utils.MapConverter.convert;

import java.io.Serializable;
import java.util.Map;

/**
 * Title: BaseModel Description:
 *
 * @author lkx
 * @version 1.0.0
 * @since 2017-02-15 17:51
 */
public abstract class BaseModel implements Serializable {
	private static final long serialVersionUID = -8884322649295904796L;

	private String errorMessage;

	/**
	 * @see com.blueocn.api.support.utils.MapConverter#convert(Object)
	 */
	public Map<String, Object> toMap() {
		return convert(this);
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
